import { request } from '@inbiz/utils';

// 获取新版流程图信息
export async function getProcessData(processDefinitionId: string) {
  return request(`/edoc2Flow-web/process/logs/process-instance/getFlowChart?processDefinitionId=${processDefinitionId || ''}`);
}

// 获取高亮节点数据
export async function getHighlightedNode(instanceId: string) {
  return request(`/edoc2Flow-web/process/logs/process-instance/${instanceId || ''}/getHighlighted`);
}

// 获取流程节点数据
export async function getActivityInfo(instanceId: string) {
  return request(`/edoc2Flow-web/process/logs/process-instance/${instanceId || ''}/getActivityInfos`);
}